package com.wk.warehouse.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 调货单
 */
public class Transshipment {

	// 调货单Id
	private Integer transId;
	// 源仓库Id
	private Integer sourceStoreId;
	// 源商品id
	private Integer sourceProductId;
	// 目标仓库id
	private  Integer targetStoreId;
	// 目标商品id
	private Integer targetProductId;
	// 调货数量
	private Integer transNum;
	// 调货状态 0未完成 1已完成
	private String auditState;
	// 创建人
	private Integer createBy;
	// 创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	// 源仓库名称
	private String sourceStoreName;
	// 源商品名称
	private String sourceProductName;
	// 目标仓库名称
	private String targetStoreName;
	// 目标商品名称
	private String targetProductName;
	// 目标商品编号
	private String targetProductNum;
	// 调货人
	private String createName;

	public Integer getTransId() {
		return transId;
	}

	public void setTransId(Integer transId) {
		this.transId = transId;
	}

	public Integer getSourceStoreId() {
		return sourceStoreId;
	}

	public void setSourceStoreId(Integer sourceStoreId) {
		this.sourceStoreId = sourceStoreId;
	}

	public Integer getSourceProductId() {
		return sourceProductId;
	}

	public void setSourceProductId(Integer sourceProductId) {
		this.sourceProductId = sourceProductId;
	}

	public Integer getTargetStoreId() {
		return targetStoreId;
	}

	public void setTargetStoreId(Integer targetStoreId) {
		this.targetStoreId = targetStoreId;
	}

	public Integer getTargetProductId() {
		return targetProductId;
	}

	public void setTargetProductId(Integer targetProductId) {
		this.targetProductId = targetProductId;
	}

	public Integer getTransNum() {
		return transNum;
	}

	public void setTransNum(Integer transNum) {
		this.transNum = transNum;
	}

	public String getAuditState() {
		return auditState;
	}

	public void setAuditState(String auditState) {
		this.auditState = auditState;
	}

	public Integer getCreateBy() {
		return createBy;
	}

	public void setCreateBy(Integer createBy) {
		this.createBy = createBy;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getSourceStoreName() {
		return sourceStoreName;
	}

	public void setSourceStoreName(String sourceStoreName) {
		this.sourceStoreName = sourceStoreName;
	}

	public String getSourceProductName() {
		return sourceProductName;
	}

	public void setSourceProductName(String sourceProductName) {
		this.sourceProductName = sourceProductName;
	}

	public String getTargetStoreName() {
		return targetStoreName;
	}

	public void setTargetStoreName(String targetStoreName) {
		this.targetStoreName = targetStoreName;
	}

	public String getTargetProductName() {
		return targetProductName;
	}

	public void setTargetProductName(String targetProductName) {
		this.targetProductName = targetProductName;
	}

	public String getTargetProductNum() {
		return targetProductNum;
	}

	public void setTargetProductNum(String targetProductNum) {
		this.targetProductNum = targetProductNum;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	@Override
	public String toString() {
		return "Transshipment{" +
				"transId=" + transId +
				", sourceStoreId=" + sourceStoreId +
				", sourceProductId=" + sourceProductId +
				", targetStoreId=" + targetStoreId +
				", targetProductId=" + targetProductId +
				", transNum=" + transNum +
				", auditState='" + auditState + '\'' +
				", createBy=" + createBy +
				", createTime=" + createTime +
				", sourceStoreName='" + sourceStoreName + '\'' +
				", sourceProductName='" + sourceProductName + '\'' +
				", targetStoreName='" + targetStoreName + '\'' +
				", targetProductName='" + targetProductName + '\'' +
				", targetProductNum='" + targetProductNum + '\'' +
				", createName='" + createName + '\'' +
				'}';
	}
}
